package com.husky.diyservice.controller;

import com.husky.diyservice.service.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author husky
 * @Date 2022/12/14 15:02
 * @Description:
 **/
@RestController
public class WebController {

    @Autowired
    private WebService webService;
    /**
     * 插入日志
     * @param channelType 代理约定日志类型 1.足迹 2.埋点 3.管理端操作 4.mq留痕
     * @return
     */
    @RequestMapping("/insert/logs/{channelType}")
    public String insertLogs(@PathVariable String channelType){
        webService.insertLogs(channelType);
        return "";
    }


}
